package com.whosly.fast.web.quickly.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "xss")
@ConditionalOnProperty(value = "xss.enabled", havingValue = "true")
@Setter
@Getter
@ToString
public class FilterConfig {
    private boolean enabled;

    private String excludes;

    private String urlPatterns;
}
